package com.test.work;

import java.util.concurrent.Callable;

/**
 * @author Cc
 *  2024-03-19
 */
public class CropDataCallable implements Callable {
    @Override
    public Object call() throws Exception {
        for (int i = 1; i <= 10; i++) {
            Thread.sleep(1000);
            if (i % 2 == 0) {
                System.out.println("数据采集....");
            }
        }
        return "数据采集完毕";
    }
}
